'use strict';

let pubsub = require('./PubsubSys.js');
// let pubsub = require('./PubsubAsync.js');

class ClassA {
    eat(what) {
        console.log('ClassA::eat %s, and publish this event', what);
        pubsub.publish('eat', what);
        console.log('ClassA publish done');
    }
}

module.exports = ClassA;